package com.luboyan.CBillbill.service.user.following;

import com.luboyan.CBillbill.dao.user.following.FollowingGroup;
import com.luboyan.CBillbill.dao.user.following.UserFollowing;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户关注用户管理
 */
@Service
public interface UserFollowingService {

    /**
     * 添加或更新用户的单条关注信息
     */
    void addUserFollowings(UserFollowing userFollowing);

    /**
     * 通过当前登录的用户id查询用户拥有的所有分组
     */
    List<FollowingGroup> getUserFollowings(Long userId);

    /**
     * 获取当前登录用户的粉丝列表
     */
    List<UserFollowing> getUserFans(Long userId);
}
